<!DOCTYPE HTML>
<html>

<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5shiv.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<![endif]-->
	<link rel="stylesheet" type="text/css" href="../static/h-ui/css/H-ui.min.css" />
	<link rel="stylesheet" type="text/css" href="../static/h-ui.admin/css/H-ui.admin.css" />
	<link rel="stylesheet" type="text/css" href="../lib/Hui-iconfont/1.0.8/iconfont.css" />
	<link rel="stylesheet" type="text/css" href="../static/h-ui.admin/skin/default/skin.css" id="skin" />
	<link rel="stylesheet" type="text/css" href="../static/h-ui.admin/css/style.css" />
	<script type="text/javascript" src="../lib/jquery/1.9.1/jquery.min.js"></script>
	<script type="text/javascript" src="../lib/layer/2.4/layer.js"></script>
	<script type="text/javascript" src="../static/h-ui/js/H-ui.min.js"></script>
	<script type="text/javascript" src="../static/h-ui.admin/js/H-ui.admin.js"></script>
	<!--/_footer 作为公共模版分离出去-->

	<!--请在下方写此页面业务相关的脚本-->
	<script type="text/javascript" src="../lib/My97DatePicker/4.8/WdatePicker.js"></script>
	<script type="text/javascript" src="../lib/jqueryPage/paging.min.js"></script>
	<script type="text/javascript" src="../lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
	<script type="text/javascript" src="../lib/laypage/1.2/laypage.js"></script>
	<script src="../lib/jrender.min.js" type="text/javascript"></script>
	<script type="text/javascript" src="../js/config.js"></script>
	<script>
		$(function () {
			var account = $.cookie('useradmin__adminName');
			var md5 = $.cookie('admin__code');

			var pageSize = 10;
			// 初始化分页器
			$('#page-box').page({
				leng: 6, //分页总数
				activeClass: 'activP', //active 类样式定义
				clickBack: function (page) {
					getPageData(page, pageSize);
				}
			})

			function getPageData(pageNum, pageSize) {

				$.ajax({
					type: 'POST',
					url: $.webConfig.basicUrl + '/chuyangPay/admin/getList',
					data: {
						account: account,
						md5: md5,
						//						rows: pageNum,
						//						pageSize: pageSize
					},
					dataType: "json",
					success: function (data) {


						if (data['code'] == 200) {

							jsRenderTpl = $.templates('#j-specCard');
							finalTpl = jsRenderTpl(data);
							console.log(data);
							$('.j-specCard-box').html(finalTpl);
						} else {
							layer.alert(data['return_msg']);
						}
					},
					error: function (err) {
						console.log(err);
					}
				})

			}
			getPageData(1, pageSize);

		})
	</script>
	<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
	<title>代付列表</title>
</head>

<body>
	<nav class="breadcrumb">
		<i class="Hui-iconfont">&#xe67f;</i> 首页
		<span class="c-gray en">&gt;</span> 代付列表
		<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);"
		    title="刷新">
			<i class="Hui-iconfont">&#xe68f;</i>
		</a>
	</nav>
	<div class="page-container">
		<div class="text-c">

			开始时间:
			<input id="start_time" class="Wdate input-text" style="width:160px" type="text" onfocus="WdatePicker({skin:'twoer',dateFmt:'yyyy-MM-dd HH:mm:ss',readOnly:true})"
			/> 结束时间:
			<input id="end_time" class="Wdate input-text" style="width:160px" type="text" onfocus="WdatePicker({skin:'twoer',dateFmt:'yyyy-MM-dd HH:mm:ss',readOnly:true})"
			/>
			<span class="select-box inline">
				<select name="" class="select">
					<option value="0">接口状态</option>
					<option value="1">已开通</option>
					<option value="2">未开通</option>
				</select>
			</span>
			<span class="select-box inline">
				<select name="" class="select">
					<option value="0">使用状态</option>
					<option value="1">已删除</option>
					<option value="2">正常使用</option>
				</select>
			</span>
			<br />
			<div class="mt-10"></div>


			<input type="text" name="" id="" placeholder=" 商户号" style="width:250px" class="input-text">
			<input type="text" name="" id="" placeholder=" 账号" style="width:250px" class="input-text">
			<input type="text" name="" id="" placeholder=" 身份证名称" style="width:250px" class="input-text">
			<input type="text" name="" id="" placeholder=" ICP备案登记号" style="width:250px" class="input-text">
			<button name="" id="" class="btn btn-success" type="submit">
				<i class="Hui-iconfont">&#xe665;</i> 检索</button>
		</div>

		<div class="mt-20">
			<table class="table table-border table-bordered table-bg table-hover table-sort table-responsive">
				<thead>
					<tr class="text-c">
						<th>用户id</th>
						<th width="">商户号</th>
						<th>账号</th>
						<th width="">身份证名称</th>
						<th width="">接口状态</th>
						<th width="">使用状态</th>
						<th width="">ICP备案登记号</th>
						<th>创建时间</th>
						<th>审核状态</th>
					</tr>
				</thead>
				<tbody class="j-specCard-box">
					<tr class="text-c">
						<td></td>
						<td></td>
						<td></td>
						<td></td>
						<td></td>
						<td></td>
						<td></td>
						<td></td>
						<td></td>
					</tr>
				</tbody>

				<script type="text/x-jsrender" id="j-specCard">

					{{for data}}
					<tr class="text-c">
						<td>
							{{:userNo}}
						</td>
						<td>
							{{:userMerchantNo}}
						</td>
						<td>
							{{:account}}
						</td>
						<td>
							{{:userName}}
						</td>
						<td>
							{{if type == 1}} 未开通支付接口 {{else type == 2}} 已开通支付接口 {{/if}}

						</td>
						<td>
							{{if isdel == 1}} 已删除 {{else isdel == 2}} 正常使用 {{else isdel == 3}} 未审核 {{/if}}
						</td>
						<td>
							{{:icpNo}}
						</td>
						<td>
							{{:userTime}}
						</td>
						<td>
							{{if userType == 1}} 正常 {{else userType == 2}} 审核 {{else userType == 3}} 审核不通过 {{else userType == 4}} 正在审核 {{else userType
							== 5}} 冻结 {{else userType == 6}} 未审核 {{/if}}
						</td>
					</tr>

					{{/for}}
				</script>
			</table>
		</div>
	</div>
</body>

</html>